/**
 *  * @param {number} spuId
 * @param {number} pageNum
 * @param {number} pageSize
 * @param {number} commentsLevel
 * @param {boolean} hasImage
 */
export function getGoodsAllComments(params) {
  const { hasImage } = params.queryParameter;
  if (hasImage) {
    return {
      pageNum: 1,
      pageSize: 10,
      totalCount: '1',
      pageList: [
        {
          spuId: '1722045',
          skuId: '0',
          specInfo: '',
          commentContent:
            '非常非常好吃！',
          commentResources: [
            {
              src: 'https://636c-cloud1-8gbf6t5ja57a5c96-1319116885.tcb.qcloud.la/forzenMUSI.jpg?sign=09b66f907b436ff5d6e36efbec54b2f8&t=1688886839',
              type: 'image',
            },
            // {
            //   src: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/comment-video.mp4',
            //   type: 'video',
            //   coverSrc:
            //     'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08b.png',
            // },
            // {
            //   src: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/comment-video.mp4',
            //   type: 'video',
            //   coverSrc:
            //     'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08b.png',
            // },
            // {
            //   src: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/comment-video.mp4',
            //   type: 'video',
            //   coverSrc:
            //     'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08b.png',
            // },
          ],
          commentScore: 4,
          uid: '88881048075',
          userName: '讨厌苦瓜',
          userHeadUrl:
            'https://636c-cloud1-8gbf6t5ja57a5c96-1319116885.tcb.qcloud.la/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87%E7%BC%96%E8%BE%91_20210813232809.jpg?sign=c4295256fa72d94b9783214d87759b46&t=1688886551',
          isAnonymity: false,
          commentTime: '1591953561000',
          isAutoComment: false,
          // sellerReply:
          //   '亲，你好，我们会联系商家和厂商给您一个满意的答复请一定妥善保管好发票',
          goodsDetailInfo: '尺寸:1.0磅 ',
        },
        {
          spuId: '1722045',
          skuId: '0',
          specInfo: '',
          commentContent:
            '特别特别好吃，非常推荐！',
          commentResources: [
            {
              src: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08b.png',
              type: 'image',
            },
          ],
          commentScore: 4,
          uid: '88881048075',
          userName: 'Dean',
          userHeadUrl:
            'https://cdn-we-retail.ym.tencent.com/tsr/avatar/avatar1.png',
          isAnonymity: false,
          commentTime: '1591953561000',
          isAutoComment: false,
          sellerReply:
            '感谢您的支持',
          goodsDetailInfo: '尺寸：1.5磅',
        },
        {
          spuId: '1722045',
          skuId: '0',
          specInfo: '',
          commentContent:
            '非常好',
          commentResources: [
            {
              src: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08b.png',
              type: 'image',
            },
            // {
            //   src: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/comment-video.mp4',
            //   type: 'video',
            //   coverSrc:
            //     'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08b.png',
            // },
          ],
          commentScore: 4,
          uid: '88881048075',
          userName: 'Dean',
          userHeadUrl:
            'https://cdn-we-retail.ym.tencent.com/tsr/avatar/avatar1.png',
          isAnonymity: false,
          commentTime: '1591953561000',
          isAutoComment: false,
          // sellerReply:
          //   '亲，你好，我们会联系商家和厂商给您一个满意的答复请一定妥善保管好发票',
          goodsDetailInfo: '尺寸：1.0磅',
        },
        {
          spuId: '1722045',
          skuId: '0',
          specInfo: '',
          commentContent:
            'nice！',
          commentResources: [
            {
              src: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08b.png',
              type: 'image',
            },
            // {
            //   src: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/comment-video.mp4',
            //   type: 'video',
            //   coverSrc:
            //     'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08b.png',
            // },
            // {
            //   src: 'https://cdn-we-retail.ym.tencent.com/tsr/goods/comment-video.mp4',
            //   type: 'video',
            //   coverSrc:
            //     'https://cdn-we-retail.ym.tencent.com/tsr/goods/nz-08b.png',
            // },
          ],
          commentScore: 4,
          uid: '88881048075',
          userName: 'Dean',
          userHeadUrl:
            'https://cdn-we-retail.ym.tencent.com/tsr/avatar/avatar1.png',
          isAnonymity: false,
          commentTime: '1591953561000',
          isAutoComment: false,
          goodsDetailInfo: '尺寸：3.0磅',
        },
      ],
    };
  }
  return {
    pageNum: 1,
    pageSize: 10,
    totalCount: '47',
    pageList: [
      {
        spuId: '1722045',
        skuId: '1697694',
        specInfo: '很不错',
        commentContent:
          '好吃',
        commentImageUrls: null,
        commentScore: 5,
        uid: '88881048075',
        userName: 'tingting',
        userHeadUrl:
          'https://636c-cloud1-8gbf6t5ja57a5c96-1319116885.tcb.qcloud.la/head/%E6%B2%99%E4%B8%80%E6%B1%80livehouse.jpg?sign=550004cfbc55dfb71b3698ffe114fd16&t=1688887063',
        isAnonymity: false,
        commentTime: (new Date("2023-05-16 12:11")),
        isAutoComment: false,
        goodsDetailInfo: '尺寸：1.0磅',
      },
      {
        spuId: '1722045',
        skuId: '1697693',
        specInfo: '很适合',
        commentContent:
          '好吃',
        commentImageUrls: null,
        commentScore: 4,
        uid: '88881048075',
        userName: 'JAJAJA',
        userHeadUrl:
          'https://636c-cloud1-8gbf6t5ja57a5c96-1319116885.tcb.qcloud.la/head/jay.jpg?sign=a4d0a49247dc4fbcbdeceef2acac3349&t=1688887111',
        isAnonymity: false,
        commentTime: (new Date("2023-06-21 17:15")),
        isAutoComment: false,
        goodsDetailInfo: '尺寸：1.0磅',
      },
      {
        spuId: '1722045',
        skuId: '1697694',
        specInfo: 'NICE',
        commentContent:
          '下次还来',
        commentImageUrls: null,
        commentScore: 5,
        uid: '88881048075',
        userName: 'kkyi',
        userHeadUrl:
          'https://636c-cloud1-8gbf6t5ja57a5c96-1319116885.tcb.qcloud.la/head/head-01.jpg?sign=737e47cf27ed413a5aa57670e1c5b28a&t=1688887479',
        isAnonymity: false,
        commentTime: (new Date("2023-05-27 16:12")),
        isAutoComment: true,
      },
      {
        spuId: '1722045',
        skuId: '0',
        specInfo: '',
        commentContent:
          '太喜欢了',
        commentImageUrls: null,
        commentScore: 5,
        uid: '88881048075',
        userName: 'Dean',
        userHeadUrl:
          'https://636c-cloud1-8gbf6t5ja57a5c96-1319116885.tcb.qcloud.la/head/head-03.jpg?sign=38e6e5a70b29d84a1409bd477fc5372a&t=1688887512',
        isAnonymity: false,
        commentTime: (new Date("2023-07-02 13:12")),
        isAutoComment: false,
        goodsDetailInfo: '尺寸：1.0磅',
      },
      {
        spuId: '1722045',
        skuId: '1697694',
        specInfo: '测试dr超长:dr专用超长;bwtgg01:fff',
        commentContent:
          '很好',
        commentImageUrls: null,
        commentScore: 5,
        uid: '88881048075',
        userName: '456256',
        userHeadUrl:
          'https://636c-cloud1-8gbf6t5ja57a5c96-1319116885.tcb.qcloud.la/head/head-03.jpg?sign=021f71b283560facf3607dc5f40f71b7&t=1688887541',
        isAnonymity: false,
        commentTime: (new Date("2022-12-12 12:11")),
        isAutoComment: false,
        goodsDetailInfo: '尺寸：1.5磅',

      },
      {
        spuId: '1722045',
        skuId: '1697693',
        specInfo: '测试dr超长:超长测试超长测试1;bwtgg01:bbb',
        commentContent:
          '好吃',
        commentImageUrls: null,
        commentScore: 4,
        uid: '88881048075',
        userName: 'cubie',
        userHeadUrl:
          'https://636c-cloud1-8gbf6t5ja57a5c96-1319116885.tcb.qcloud.la/head/head-02.jpg?sign=34fe7d024c7136e7ef8f5dea90a468df&t=1688887575',
        isAnonymity: false,
        commentTime: (new Date("2023-04-09 15:28")),
        isAutoComment: false,
        goodsDetailInfo: '尺寸：2.0磅',

      },
      {
        spuId: '1722045',
        skuId: '1697694',
        specInfo: '测试dr超长:dr专用超长;bwtgg01:fff',
        commentContent:
          '特别好吃',
        commentImageUrls: null,
        commentScore: 4,
        uid: '88881048075',
        userName: 'cccccc',
        userHeadUrl:
          'https://636c-cloud1-8gbf6t5ja57a5c96-1319116885.tcb.qcloud.la/head/head-01.jpg?sign=d3e802785cb13155110c8f306119ed23&t=1688887692',
        isAnonymity: false,
        commentTime: (new Date("2023-05-17 14:13")),
        isAutoComment: false,
        goodsDetailInfo: '尺寸：1.5磅',

      },
      {
        spuId: '1722045',
        skuId: '1697694',
        specInfo: '测试dr超长:dr专用超长;bwtgg01:fff',
        commentContent:
          '不擦不擦',
        commentImageUrls: null,
        commentScore: 5,
        uid: '88881048075',
        userName: 'Dean',
        userHeadUrl:
          'https://cdn-we-retail.ym.tencent.com/tsr/avatar/avatar1.png',
        isAnonymity: false,
        commentTime: '1592188822000',
        isAutoComment: false,
      },
      {
        spuId: '1722045',
        skuId: '1697694',
        specInfo: '测试dr超长:dr专用超长;bwtgg01:fff',
        commentContent:
          '很爱别管',
        commentImageUrls: null,
        commentScore: 5,
        uid: '88881055835',
        userName: 'Max',
        userHeadUrl:
          'https://cdn-we-retail.ym.tencent.com/tsr/avatar/avatar1.png',
        isAnonymity: false,
        commentTime: '1593792002000',
        isAutoComment: true,
      },
      {
        spuId: '1722045',
        skuId: '1697694',
        specInfo: '测试dr超长:dr专用超长;bwtgg01:fff',
        commentContent: 'veryvery好吃',
        commentImageUrls: null,
        commentScore: 5,
        uid: '88881055835',
        userName: 'Max',
        userHeadUrl:
          'https://cdn-we-retail.ym.tencent.com/tsr/avatar/avatar1.png',
        isAnonymity: false,
        commentTime: '1680092001000',
        isAutoComment: true,
      },
    ],
  };
}

export function getGoodsCommentsCount() {
  return {
    commentCount: '47',
    badCount: '0',
    middleCount: '2',
    goodCount: '45',
    hasImageCount: '1',
    goodRate: 95,
    uidCount: '0',
  };
}
